//
//  YbrLocalCourseDao.h
//  wifibox
//
//  Created by os X 10.9 on 14-12-22.
//  Copyright (c) 2014年 yinbaner. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YbrMusicItem.h"
#import "YbrTextClassInfoItem.h"
#import "YbrHttpMyBagItem.h"

@interface YbrLocalCourseDao : NSObject
-(NSArray *) getAll;

-(BOOL) setCourseMusic:(YbrMusicItem *) musicItem courseName:(NSString *)courseName courseId:(int) courseId channelId:(int) channelId channelName:(NSString *) channelName channelType:(int) channelType position:(int) position;

-(BOOL) setClassCourseMusic:(YbrMusicItem *) musicItem courseName:(NSString *)courseName courseId:(int) courseId channelId:(int) channelId channelName:(NSString *) channelName channelType:(int) channelType position:(int) position textClassInfo:(YbrTextClassInfoItem *) textClassInfo;

-(NSString *) getCourseNameById:(int) courseId;

// YbrMusicItem
-(NSArray *) getCourseMusicById:(YbrHttpMyBagItem *) myBagItem;

-(NSArray *) getClassCourseMusicById:(YbrHttpMyBagItem *) myBagItem;

-(NSString *) getCourseImgById:(int) courseId;

-(BOOL) deleCourseById:(int) courseId;

-(BOOL) deleCourseMusicById:(int) musicid courseId:(int) courseid;

-(BOOL) deleClassCourseMusicById:(int) musicid courseId:(int) courseid;

-(BOOL) deleCourseMusicOnlyDBById:(int) musicid;
@end
